using System;
using System.Collections.Generic;
using System.Text;
using SchEdu.Framework.DataModel;
using SchEdu.Framework.Exceptions;

namespace SchEdu.Framework.Validators
{
    public class OrderValidator : Validator
    {
        public OrderValidator(SchEduData schEduData)
            : base(schEduData)
        {
        }
        #region IValidator Members

        public override void Validate()
        {
            if (SchEduData.Order.Count == 0)
            {
                throw new ValidatorException(Resources.NoOrders);
            }
        }

        #endregion
    }
}
